<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户添加</title>
    <style>
        /* 样式部分保持不变 */
        form {
            background-color: #fff;
            padding: 20px 20px 200px 20px ;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            width: 300px;
            margin: 0 auto;

        }
        input[type="text"], input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        input[type="submit"] {
            background-color: #007bff;
            color: #fff;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>

<!-- 导航栏 -->
    <div>
    <%@ include file="Function.jsp" %>
    </div>


        <!-- 表单部分 -->
<form action="../AddUserServlet.do" method="post">
    <h2>添加用户</h2>
    <label for="username">姓名：</label>
    <input type="text" id="username" name="username"><br>
    <label for="password">密码：(注：默认密码123456)</label>
    <input type="password" id="password" name="password" value="123456"><br>
    <div style="padding: 10px 10px 10px 10px">

    <label>
        <p>设置权限</p>
        <input type="radio" name="userType" value="1" checked> 用户
    </label>
    <label>
        <input type="radio" name="userType" value="2"> 管理员
    </label><br>
    </div>
   <div style="text-align: center" > <input  type="submit" value="添加用户"></div>
</form>


</body>
</html>
